﻿using System;
using System.Web.Configuration;

namespace VioletDevelopmentLaboratory.Net.Web.Configuration
{
	public sealed class SessionPageStateSectionManager : ConfigurationManagerBase
	{
		private SessionPageStateSection section;

		public SessionPageStateSectionManager()
		{
			this.section = (SessionPageStateSection)base.GetConfigurationSection("system.web/sessionPageState");
		}

		public void Modify(int historySize)
		{
			this.section.HistorySize = historySize;
			this.Save();
		}
		public SessionPageStateSection GetSessionPageStateSection()
		{
			return this.section;
		}
	}
}
